package com.emm.yixun.openapi.hander;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.emm.yixun.common.app.GetTimeConditionAnalysisReqDto;
import com.emm.yixun.common.app.GetTimeConditionAnalysisResDto;
import com.emm.yixun.estate.service.app.ProjectInfoServiceAppFacade;
import com.emm.yixun.openapi.dto.base.BaseRequestDTO;
import com.emm.yixun.openapi.dto.base.BaseResponseDTO;
import com.emm.yixun.openapi.hander.base.CommonAbstractHander;
import com.emm.yixun.openapi.vo.GetTimeConditionAnalysisReqVo;

/**
 * 时间条件查询分析接口
 * @author Administrator
 *
 */
@Service("getTimeConditionAnalysisHander")
public class GetTimeConditionAnalysisHander extends CommonAbstractHander{
	
	@Autowired
	private ProjectInfoServiceAppFacade projectInfoServiceAppFacade;
	
	@SuppressWarnings("rawtypes")
	@Override
	public BaseResponseDTO doBusiness(BaseRequestDTO reqDto) {
		GetTimeConditionAnalysisReqVo req = (GetTimeConditionAnalysisReqVo) reqDto;
		GetTimeConditionAnalysisReqDto reqDto1 = req.getParams();
		BaseResponseDTO<GetTimeConditionAnalysisResDto> res = new BaseResponseDTO<GetTimeConditionAnalysisResDto>();
		res.setResData(projectInfoServiceAppFacade.getTimeConditionAnalysis(reqDto1));
		return res;
	}
	
}
